<template>
  <div>
    <Button type="primary" @click="handleLoading">
      loading（2″后自动关闭）
    </Button>
  </div>
</template>

<script setup lang="ts">
import { Button, Loading } from "leisure-lib";
const handleLoading = () => {
  const loading = Loading.show();
  setTimeout(() => {
    loading.close();
  }, 2000);
};
</script>

<style scoped></style>
